package com.edu.study.base.stuLevel.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edu.study.base.stuLevel.mapper.StuLevelMapper;
import com.edu.study.base.stuLevel.domain.StuLevel;
import com.edu.study.base.stuLevel.service.IStuLevelService;

/**
 * stuLevelService业务层处理
 * 
 * @author zw
 * @date 2021-05-28
 */
@Service
//@DataSource(value = DataSourceType.SLAVE)
public class StuLevelServiceImpl implements IStuLevelService 
{
    @Autowired
    private StuLevelMapper stuLevelMapper;

    /**
     * 查询stuLevel
     * 
     * @param id stuLevelID
     * @return stuLevel
     */
    @Override
    public StuLevel selectStuLevelById(Long id)
    {
        return stuLevelMapper.selectStuLevelById(id);
    }

    /**
     * 查询stuLevel列表
     * 
     * @param stuLevel stuLevel
     * @return stuLevel
     */
    @Override
    public List<StuLevel> selectStuLevelList(StuLevel stuLevel)
    {
        return stuLevelMapper.selectStuLevelList(stuLevel);
    }

    /**
     * 新增stuLevel
     * 
     * @param stuLevel stuLevel
     * @return 结果
     */
    @Override
    public int insertStuLevel(StuLevel stuLevel)
    {
        return stuLevelMapper.insertStuLevel(stuLevel);
    }

    /**
     * 修改stuLevel
     * 
     * @param stuLevel stuLevel
     * @return 结果
     */
    @Override
    public int updateStuLevel(StuLevel stuLevel)
    {
        return stuLevelMapper.updateStuLevel(stuLevel);
    }

    /**
     * 批量删除stuLevel
     * 
     * @param ids 需要删除的stuLevelID
     * @return 结果
     */
    @Override
    public int deleteStuLevelByIds(Long[] ids)
    {
        return stuLevelMapper.deleteStuLevelByIds(ids);
    }

    /**
     * 删除stuLevel信息
     * 
     * @param id stuLevelID
     * @return 结果
     */
    @Override
    public int deleteStuLevelById(Long id)
    {
        return stuLevelMapper.deleteStuLevelById(id);
    }
}
